< previous page page_369 next page >

Page 369
8694cbadb9b1ef7075903f6f95fc1db2.gif
List of reports from which to select
8694cbadb9b1ef7075903f6f95fc1db2.gif
Choose from display and Print
8694cbadb9b1ef7075903f6f95fc1db2.gif
Printer options
When you have completed this example, you will be able to include it in any application for which you need a report manager. To begin this process, start a new project and name it PRTMGR; then name the form in it frmPrintMgr. Table 13.4 lists the controls and the properties you need to set. Place them on the form as shown in Figure 13.24.
TABLE 13.4. THE REPORT MANAGER CONTROLS AND PROPERTY SETTINGS.
ControlPropertyValue
ListBoxNamelstReportName
Multiselect0-None
Command ButtonNamecmdCancel
CaptionCancel
Command ButtonNamecmdReport
CaptionDisplay
FrameNamefraWindow
CaptionReports
Option ButtonNameoptDisplay
CaptionDisplay
Item0
ValueTrue
Option ButtonNameoptDisplay
CaptionPrint
Item1
ValueFalse
Command ButtonNamecmdPrtSetup
CaptionPrinter
VisibleFalse
Crystal ReportsNamerptAddress
Common DialogNamedlgReports

After you've added the controls to the form, you are ready to add the necessary code. The first section of code that should always be added is the declaration section for the variables that will be used in the code. Add the code in Listing 13.1 to the frmAddress form.

 
< previous page page_369 next page >

If you like this book, buy it!